<?php
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,"https://www.fshare.vn/login.php");
curl_setopt($ch,CURLOPT_TIMEOUT,4);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,1);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_REFERER,"https://www.fshare.vn/");
curl_setopt($ch,CURLOPT_POSTFIELDS,"login_useremail=khoinguyen_lld@yahoo.com.vn&login_password=n4apa4&auto_login=1");
curl_setopt($ch,CURLOPT_COOKIEJAR,"cookie-fshare");
curl_setopt($ch,CURLOPT_COOKIEFILE,"cookie-fshare");
$login_done = curl_exec($ch);
curl_close($ch);
echo $login_done;
?>